/**
 * main.ts
 *
 * Bootstraps Vuetify and other plugins then mounts the App`
 */

// Plugins
import {registerPlugins} from "@/plugins";

// Components
import App from "./App.vue";

// Composables
import {createApp} from "vue";
import {useAppStore} from "@/stores/app";

const app = createApp(App);

registerPlugins(app);

const appStore = useAppStore();

appStore.updateWideScreen(); // 初始化状态

globalThis.addEventListener("resize", () => {
    appStore.updateWideScreen();
});

app.mount("#app");